package com.gxa.hotel.admin.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.hotel.admin.mapper.RoomsMapper;
import com.gxa.hotel.admin.service.RoomsService;
import com.gxa.hotel.core.pojo.domain.Rooms;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hotel
 * @since 2022-07-19
 */
@Service
public class RoomsServiceImpl extends ServiceImpl<RoomsMapper, Rooms> implements RoomsService {

    @Autowired
    RoomsMapper roomsMapper;

    @Override
    public Rooms selectByName(String name) {
        Rooms rooms = roomsMapper.selecName(name);
        return rooms;
    }
}
